<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>游戏</title>

    <!-- Bootstrap -->
    <link href="bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    

    <script src="js/jquery-3.2.1.min.js"></script>
    <script src="bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
    
    <script type="text/javascript">
    
       function loginOut(){
    	   $.ajax({
    		   type: "POST",
    		   url: "../loginOut.html",
    		   data: {"userId":1},
    		   dataType: "json",
    		   success: function(msg){
    		     if(msg.code==200){
    		    	 alert(msg.msg);
    		    	 window.location.href = msg.data.page;
    		     }else{
    		    	 alert(msg.msg);
    		     }
    		   }
    		 });
       }
       
       /* function register(){
    	   $.ajax({
    		   type: "GET",
    		   url: "../register.html",
    		   data: $('#userFrom').serialize(),
    		   dataType: "json",
    		   contentType:"application/json",
    		   success: function(msg){
    		     alert(msg.msg);
    		   }
    		 });  
       } */
    
    </script>
  </head>
  <body>
   	
<div class="panel panel-default">
  <div class="panel-heading">开始游戏</div>
  <div class="panel-body">
		<div class="btn-group" role="group" aria-label="...">
		  <a class="btn btn-primary btn-lg" href="javascript:loginOut()" role="button">退出</a>
		 <!--  <a class="btn btn-primary btn-lg" href="javascript:register()" role="button" style="margin-left: 20px">注册</a> -->
		</div>
  </div>
</div>
    
    
  </body>
</html>